package com.nbsaas.boot.project.rest.convert;

import com.nbsaas.boot.project.api.domain.simple.ProjectTaskTagSimple;
import com.nbsaas.boot.project.data.entity.ProjectTaskTag;
import com.nbsaas.boot.rest.api.Converter;

/**
 * 任务标签-列表对象转换器
 */

public class ProjectTaskTagSimpleConvert implements Converter<ProjectTaskTagSimple, ProjectTaskTag> {


    @Override
    public ProjectTaskTagSimple convert(ProjectTaskTag source) {
        ProjectTaskTagSimple result = new ProjectTaskTagSimple();

        result.setAmount(source.getAmount());
        result.setName(source.getName());
        result.setId(source.getId());
        result.setAddDate(source.getAddDate());
        result.setLastDate(source.getLastDate());


        return result;
    }

}